export const BreadcrumbList = ['首页', '回复评论管理', '回复评论列表']

export const filterList = [
    {
        label: '目标评论 id',
        key: 'comment_id',
        type: 'input-label',
        config: {
            content: '目标评论 id',
            pend: 'prepend',
            style: {
                color: '#999',
                fontSize: '12px',
                padding: '0 5px'
            }
        },
        span: 6
    },{
        label: '搜索',
        key: 'search',
        type: 'button',
        icon: 'ios-search',
        span: 2
    }
]


export const TableColumns = [
    {
        type: 'index',
        width: 60,
        align: 'center'
    },
    {
        title: '文章 id',
        key: 'comment_id'
    },
    {
        title: '回复人',
        key: 'reply_name',
    },
    {
        title: '回复内容',
        key: 'content',
    },
    {
        title: '回复时间',
        key: 'created_at',
    },
    {
        title: '操作',
        key: 'action',
        width: 150,
        align: 'center',
        render: (h, params) => {
            return h('div', [
                h('i-button', {
                    attrs: {
                        type: 'primary',
                        size: 'small',
                    },
                    on: {
                        click: () => {
                            console.log(params)
                        }
                    },
                    style: {
                        marginRight: '8px'
                    }
                }, '编辑'),
                h('i-button', {
                    attrs: {
                        type: 'error',
                        size: 'small',
                    },
                    on: {
                        click: () => {
                            console.log(params)
                        }
                    }
                }, '删除')
            ])
        }
    }
]
